export default [
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        authority: ['admin', 'user'],
        routes: [
          {
            path: '/',
            redirect: '/node-management/edge-node',
          },
          //暂时屏蔽总览
          // {
          //   path: '/',
          //   redirect: '/dashboard',
          // },
          // {
          //   name:"dashboard",
          //   path: '/dashboard',
          //   component: './Dashboard',
          // },
          {
            path: '/admin',
            name: 'admin',
            icon: 'crown',
            component: './Admin',
            authority: ['admin'],
            routes: [
              {
                path: '/admin/sub-page',
                name: 'sub-page',
                icon: 'smile',
                component: './Welcome',
                authority: ['admin'],
              },
            ],
          },
          {
            path: '/node-management',
            name: 'edgeResource',
            icon: 'smile',
            routes: [
              {
                path: '/node-management/edge-node',
                name: 'edgeNode',
                component: './NodeManagement/EdgeNode',
              },
              {
                path: '/node-management/edge-node/add-node',
                name: 'addEdgeNode',
                component: './NodeManagement/EdgeNode/addEdgeNode',
                hideInMenu: true,
              },
              {
                path: '/node-management/edge-node/node-detail/:id',
                name: 'edgeNodeDetail',
                component: './NodeManagement/EdgeNode/edgeNodeDetail',
                hideInMenu: true,
              },
              {
                path: '/node-management/edge-node/add-node-group',
                name: 'addEdgeGroup',
                component: './NodeManagement/EdgeNode/addEdgeGroup',
                hideInMenu: true,
              },
              {
                path: '/node-management/edge-node/group-detail/:id',
                name: 'edgeGroupDetail',
                component: './NodeManagement/EdgeNode/edgeGroupDetail',
                hideInMenu: true,
              },
              // {
              //   path: '/node-management/terminal-device',
              //   name: 'terminalDevice',
              //   component: './NodeManagement/TerminalDevice',
              // },
              // {
              //   path: '/node-management/terminal-device/add',
              //   name: 'terminalDevice.add',
              //   component: './NodeManagement/TerminalDevice/add',
              //   hideInMenu: true,
              // },
              // {
              //   path: '/node-management/terminal-device/add/:id',
              //   name: 'terminalDevice.add',
              //   component: './NodeManagement/TerminalDevice/add',
              //   hideInMenu: true,
              // },
              // {
              //   path: '/node-management/terminal-device/detail',
              //   name: 'terminalDevice.detail',
              //   component: './NodeManagement/TerminalDevice/detail',
              //   hideInMenu: true,
              // },
              // {
              //   path: '/node-management/terminal-device/inference',
              //   name: 'terminalDevice.inference',
              //   component: './NodeManagement/TerminalDevice/inference',
              //   hideInMenu: true,
              // },
            ]
          },
          {
            path: '/deploy-online',
            name: 'deployOnline',
            icon: 'smile',
            routes: [
              {
                path: '/deploy-online/central-inference',
                name: 'centralInference',
                component: './DeployOnline/CentralInference',
              },
              {
                path: '/deploy-online/central-inference/detail',
                name: 'centralInference.detail',
                component: './DeployOnline/CentralInference/detail',
                hideInMenu: true,
              },
              {
                path: '/deploy-online/central-inference/add',
                name: 'centralInference.add',
                component: './DeployOnline/CentralInference/add',
                hideInMenu: true,
              },
              {
                path: '/deploy-online/edge-inference',
                name: 'edgeInference',
                component: './DeployOnline/EdgeInference',
              },
              {
                path: '/deploy-online/edge-inference/add',
                name: 'edgeInference.add',
                component: './DeployOnline/EdgeInference/add',
                hideInMenu: true,
              },
              {
                path: '/deploy-online/edge-inference/detail/:id',
                name: 'edgeInference.detail',
                component: './DeployOnline/EdgeInference/detail',
                hideInMenu: true,
              },
            ]
          },
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    component: './404',
  },
];
